<script setup lang="ts">
import useStore from "../store";
const { channel } = useStore()
channel.getChannelList();
</script>

<template>
  <ul class="catagtory">
    <li
      :class="{ select: item.id === channel.active }"
      v-for="item in channel.list"
      :key="item.id"
      @click="channel.changeActive(item.id)"
    >
      {{ item.name }}
    </li>
  </ul>
</template>

<style scoed lang="less"></style>
